Repository navigation
Add Matrix desktop UI with a shared GTK runtime - #24
Merged
Merged
Conversation
bytetroll
added a commit
that referenced
this pull request
Oct 30, 2026
PR #24 was merged into codex/niltest-colocated rather than master, so the Matrix UI library and its compiler fixes stayed off the release branch while PR #23 (niltest) landed on its own. This brings nilstd/src/ui and the accompanying type-checker, parser and GTK runtime work onto master so the sealed SDK packages nil.std.ui. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
nil.std.ui, a desktop application library written in Matrix, with a shared optional GTK 4 provider for VM and native execution. Applications can create windows, rows/columns/grids, labels, buttons, entries and checkboxes, consume copied typed events, and synchronize text/flag models. The NIL² counter/settings example exercises a complete event loop, live bindings, layout and checked failures.This PR is based on #23 and uses its compiler-integrated niltest suites. Pure model tests live beside the library; isolated display tests drive real keyboard input, activation and window-manager close requests. Resource tests inspect GTK's actual window registry across VM pauses, completion, faults, reset, reload and destruction, plus native context completion/restart and managed text collection.
The provider validates handles, parentage, UTF-8, bounds, thread ownership and its exact intrinsic ABI. The SDK uses the system GTK runtime on Linux and returns explanatory errors when the provider or display is unavailable. CI now installs the GTK/Xvfb dependencies so this desktop coverage runs in both LLVM configurations.
Writing the library exposed compiler issues addressed here:
then begin block … end blockboundaries for nested conditionals insideconsiderarms; update grammar, guide and VS Code highlighting/folding/snippet support.Option<Record>constructors on native routes, with paired Ny/Matrix six-route regressions.Validation: Release build with LLVM 21; 538 applicable CTest checks passing (the grammar consistency check was rerun after adding the contextual word classification), with one optional PostgreSQL integration check skipped locally; 141 extension unit tests and 85 real extension-host checks. A copied development SDK validates 11 tools, 18 library modules and 63 documentation pages. Its desktop suites pass through VM/native execution. The sample application was also rendered and exercised on both routes.
The current UI scope is the documented Linux GTK 4 foundation. Declarative NILData views, richer widgets, menus/dialogs and additional OS providers remain follow-up work. Findings are recorded in
matrix/docs/next-version-findings.md; NIL-0025 describes the architecture. NIL² is public generation presentation, separate from the numeric release identity inVERSION.